//
//  JUFNNavViewController.swift
//  WiBoPM
//
//  Created by 陈俊峰 on 2017/1/5.
//  Copyright © 2017年 陈俊峰. All rights reserved.
//

import UIKit

class JUFNNavViewController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

    }

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        viewController.navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_back", title: "后退", target: self, action: #selector(close))
        viewController.hidesBottomBarWhenPushed = true
        super.pushViewController(viewController, animated: animated)

    }
    
    @objc private func close() {
        self.popViewController(animated: true)
    }
}
